home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_VB / IVBSRC.ZIP;1 / WINEND.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1994-07-04  |  3.3 KB  |  76 lines

  1. Form1
  2. Exit Windows
  3. wwwwp
  4. wwwww
  5. Form1%
  6. Form_Click
  7. ExitWindows
  8. dwReservedq
  9. wReturnCode
  10. EW_REBOOTSYSTEM
  11. EW_RESTARTWINDOWS
  12. Form_Resize
  13. Form1
  14. WindowState
  15.     Form_Load
  16. State8
  17. Form1_Click
  18. State1
  19. EW_EXITWINDOWSg
  20. value
  21. level
  22. react
  23. resize
  24. events
  25. based
  26. which
  27. event
  28. occurs
  29. fails
  30. whatever
  31. reason
  32. displaying
  33. EW_CURRENTEXITTYPE
  34. demonstration
  35. program
  36. Userw
  37. Return to DOSu
  38. Reboot computer
  39. Exit to DOS & restart WindowsR
  40. Keep track of why Resize event
  41. is being triggered.e
  42. We set the EW_CURRENTEXITTYPE constant
  43. to the type of exit we want for this
  44. demonstration program.
  45. Form_Click
  46. Mark that program is in Click eventa
  47. Minimize WinEnd'
  48.     MsgBox "Windows Reboot aborted by an application.", 16, "Message from WinEnd"
  49. Reset program since it was aborted
  50. Form_Load
  51. Minimize the formn
  52. Form_Resize
  53.  The Form_Resize event procedure
  54.  uses the form level variable State%
  55.  to let it react to resize eventse
  56.  based on the point at which the
  57.  resize event occurs.
  58. State%'s
  59.  Purpose
  60.  Value
  61.  Used to ignore initial
  62.      resize event when program
  63.      launched.
  64.  Used to activate Form_Click 
  65.      event when you want to exit
  66.      windows. WinEnd resets 
  67.      State% to 2 if the exit
  68.      fails (for whatever
  69.      reason).o
  70.  Used while trying to shutc
  71.      down Windows to avoid
  72.      displaying the WinEnd form.
  73. After FORM_LOADC
  74. After activatedC
  75. During FORM_CLICKE
  76.